<%@page import="com.mvc.ProjectUtils"%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/pages/common/header.jsp"%>
<title>客户管理</title>
</head>
<body>
	<div class="contentBody contentborder">
		<div class="tab-pane" id="tabPane">
			<div id="message">${message}</div>
			<div class="tab-page" id="tabPage1">
				<h1 class="tab">公司管理</h1>
				<div class="contentborder tableForm">
					<jdf:form bean="entity" scope="request">
						<form action="${dynamicDomain}/company/save?action=${param.action}" method="post">
							<input type="hidden" name="id">
							<input type="hidden" name="objectId">
							<input type="hidden" name="userId">
							<input type="hidden" name="companyId" value="0">
							<table class="inputTable">
							    <tr>
									<td class="label cancelBorderLeft">
										<label for="name">公司名称：</label>
									</td>
									<td class="content" colspan="3">
										<input type="text" name="name" size="70"/>
									</td>
								</tr>
								<tr>
								    <td class="label cancelBorderLeft">
                                        <label for="address">地址：</label>
                                    </td>
                                    <td class="content" colspan="3">
                                        <input type="text" name="address" size="70">
                                    </td>
								</tr>
								<tr>
                                    <td class="label cancelBorderLeft">
										<label for="linkPerson">联系人：</label>
									</td>
									<td class="content">
										<input type="text" name="linkPerson">
									</td>
                                    <td class="label">
                                        <label for="linkTelephone">联系电话：</label>
                                    </td>
                                    <td class="content">
                                        <input type="text" name="linkTelephone">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label cancelBorderLeft">
                                        <label for="fax">传真：</label>
                                    </td>
                                    <td class="content" colspan="3">
                                        <input type="text" name="fax">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label cancelBorderLeft">
                                        <label for="email">电子邮件：</label>
                                    </td>
                                    <td class="content"  colspan="3">
                                        <input type="text" name="email" size="70"  title="多个邮件地址之间用分号(;)分割">
                                    </td>
                                </tr>
								<tr>
									<td class="label cancelBorderLeft">
										<label for="site">网站：</label>
									</td>
									<td class="content" colspan="3">
										<input type="text" name="site" size="70">
									</td>
								</tr>
								<tr>
                                    <td class="label cancelBorderLeft">
                                        <label for="bankName">银行名称：</label>
                                    </td>
                                    <td class="content" colspan="3">
                                        <input type="text" name="bankName" size="70">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label cancelBorderLeft">
                                        <label for="bankAddress">银行地址：</label>
                                    </td>
                                    <td class="content" colspan="3">
                                        <input type="text" name="bankAddress" size="70">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label cancelBorderLeft">
                                        <label for="bankAccountName">帐户名：</label>
                                    </td>
                                    <td class="content">
                                        <input type="text" name="bankAccountName">
                                    </td>
                                     <td class="label">
                                        <label for="bankNo">帐号：</label>
                                    </td>
                                    <td class="content">
                                        <input type="text" name="bankNo">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label cancelBorderLeft">
                                        <label for="swiftCode">Swift Code：</label>
                                    </td>
                                    <td class="content" colspan="3">
                                        <input type="text" name="swiftCode">
                                    </td>
                                </tr>
								<tr>
                                    <td class="label cancelBorderLeft">
                                        <label for="status">状态：</label>
                                    </td>
                                    <td class="content" colspan="3">
                                        <select name="status">
                                            <jdf:select dictionaryId="111"/>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label cancelBorderLeft">
                                        <label for="logo">Logo：</label>
                                    </td>
                                    <td class="content">
                                        <input type="text" name="logo" size="40">
                                    </td>
                                    <td class="content" colspan="2">
                                        <c:if test="${not empty  entity.logo}">
                                            <img src="<%=ProjectUtils.getFullCssThemePath() %>images/system/logo/${entity.logo}"  width="180" height="84">
                                        </c:if>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label cancelBorderLeft">
                                        <label for="officialSeal">章：</label>
                                    </td>
                                    <td class="content">
                                        <input type="text" name="officialSeal">
                                    </td>
                                    <td class="content" colspan="2">
                                        <c:if test="${not empty  entity.officialSeal}">
                                            <img src="<%=ProjectUtils.getFullCssThemePath() %>images/system/company/${entity.officialSeal}">
                                        </c:if>
                                    </td>
                                </tr>
								<tr>
									<td class="bottomLabel" colspan="4">
										<div class="right">
											<button type="submit">保存</button>
											<c:if test="${not empty message}">
											<button type="button" onclick="toUrl('${dynamicDomain}/company/create?action=${param.action}')">继续增加</button>
											</c:if>
											<c:choose>
												<c:when test="${param.action=='page'}">
													<button type="button" onclick="toUrl('${dynamicDomain}/company/back')">返回</button>
												</c:when>
												<c:otherwise>
													<button type="button" onclick="toUrl('${dynamicDomain}/company/${param.action}')">返回</button>
												</c:otherwise>
											</c:choose>
											
										</div>
									</td>
								</tr>
							</table>
						</form>
					</jdf:form>
				</div>
			</div>
		</div>
	</div>
	<jdf:tableLabelValidate domain="Company"/>
</body>
</html>